aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/map
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-07-30 10:02:55 -0700
committerAdam Soltys <[email protected]>2024-07-30 10:02:55 -0700
commit32c6c3377211277955567ba4fbeaaa906c095be4 (patch)
tree3b7a09a0a2f8cabcb8e097fca9c7281a961869a5 /src/routes/(app)/[username]/map
parentea55b338897c3ebac9e51d1290e118fa0cf11cfd (diff)
downloadcoinos-ui-32c6c3377211277955567ba4fbeaaa906c095be4.tar.gz
coinos-ui-32c6c3377211277955567ba4fbeaaa906c095be4.zip
update zh
Diffstat (limited to 'src/routes/(app)/[username]/map')
0 files changed, 0 insertions, 0 deletions
:17 -0700 committer Adam Soltys <[email protected]> 2022-10-18 21:58:17 -0700 handle card payment' href='/coinos-ui.git/commit/src/routes/launch/purchase/card/+page.svelte?h=hashme&id=b7571e82c8c2e52ecf8565cfb2ab99a7620673ad'>b7571e82 ^
87fc33df ^
b7571e82 ^







87fc33df ^
b7571e82 ^

87fc33df ^
b7571e82 ^









87fc33df ^
b7571e82 ^





87fc33df ^
b7571e82 ^

87fc33df ^
b7571e82 ^














1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
        






                                                              

         

















                                                                                                                     
                          

                                
 







                                                                                                                     
                          

                                    
 









                                                                                                                                                                                                                             
                               





                                                                                                                     
                          

                                
 














                                                                                                                                    
<script>
	import { enhance } from '$app/forms';
	import { Lock, Card, Calendar, Spinner } from '$comp';

	export let data;

	let { username } = data.user;
	let loading;
</script>

<div class="container max-w-lg px-4 mx-auto space-y-5">
	<form
		method="POST"
		class="flex flex-wrap gap-5 w-full p-5 mt-20"
		use:enhance={() => {
			loading = true;
			return ({ update }) => update() && (loading = false);
		}}
	>
		<input type="hidden" name="username" value={username} />
		<label class="relative w-full flex flex-col">
			<span class="font-bold mb-3">Card number</span>
			<input
				class="rounded-md peer pl-12 pr-2 py-2 border-2 border-gray-200 placeholder-gray-300"
				type="text"
				name="number"
				placeholder="0000 0000 0000"
				value="4242424242424242"
			/>
			<Card />
		</label>

		<label class="relative flex-1 flex flex-col">
			<span class="font-bold mb-3">Expire date</span>
			<input
				class="rounded-md peer pl-12 pr-2 py-2 border-2 border-gray-200 placeholder-gray-300"
				type="text"
				name="expiry"
				placeholder="MM/YY"
				value="0123"
			/>
			<Calendar />
		</label>

		<label class="relative flex-1 flex flex-col">
			<span class="font-bold flex items-center gap-3 mb-3">
				CVC/CVV
				<span class="relative group">
					<span
						class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white"
					>
						3-digit number on the back of your card</span
					>
				</span>
			</span>
			<input
				class="rounded-md peer pl-12 pr-2 py-2 border-2 border-gray-200 placeholder-gray-300"
				type="text"
				name="cvc"
				placeholder="&bull;&bull;&bull;"
				value="123"
			/>
			<Lock />
		</label>

		<div class="w-full flex mt-8">
			<button
				class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-xl"
				type="submit"
				disabled={loading}
			>
				{#if loading}
					<Spinner />
				{:else}
					Submit
				{/if}
			</button>
		</div>
	</form>
</div>